package actions;

import java.util.List;
import org.apache.log4j.Logger;
import beans.User;

import com.opensymphony.xwork2.ActionSupport;

import controllers.AbstractController;


public class CreateGroup extends ActionSupport {

	private static final long serialVersionUID = 1164809814839976523L;

	private static final Logger LOGGER = Logger.getLogger(CreateGroup.class);

	
	// -------------------------------------------------------------
	// Objects
	// -------------------------------------------------------------

	AbstractController controller = new AbstractController();

	private String groupeName;
	private String idCorrector;
	private String idRender;
	private String idNoteReport;
	
	private boolean result;
	
	
	// -------------------------------------------------------------
	// Methods
	// -------------------------------------------------------------

	public String execute() {
		setResult(controller.createGroup(getGroupeName(), Integer.parseInt(getIdCorrector()), Integer.parseInt(getIdRender()), Integer.parseInt(getIdNoteReport())));
		return SUCCESS;
	}



	public String getGroupeName() {
		return groupeName;
	}



	public void setGroupeName(String groupeName) {
		this.groupeName = groupeName;
	}



	public String getIdCorrector() {
		return idCorrector;
	}



	public void setIdCorrector(String idCorrector) {
		this.idCorrector = idCorrector;
	}



	public String getIdRender() {
		return idRender;
	}



	public void setIdRender(String idRender) {
		this.idRender = idRender;
	}



	public String getIdNoteReport() {
		return idNoteReport;
	}



	public void setIdNoteReport(String idNoteReport) {
		this.idNoteReport = idNoteReport;
	}



	public boolean isResult() {
		return result;
	}


	public void setResult(boolean result) {
		this.result = result;
	}





}
